/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f7;
    min-height: 100vh;
    position: relative;
    padding: 20px 0;
}

/* 主容器样式 */
.bg {
    width: 800px;
    height: 450px;
    background-color: #7b4397; /* 主紫色 */
    background: linear-gradient(135deg, #9377a8 0%, #864d50 100%); /* 渐变背景 */
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    border-radius: 15px;
    box-shadow: rgba(100, 100, 111, 0.3) 0 7px 30px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 悬停效果 */
.bg:hover {
    box-shadow: rgba(100, 100, 111, 0.4) 0 10px 40px 0;
    transform: translateY(-3px);
}

/* 左侧标语区域 */
.slogan {
    color: aliceblue;
    width: 40%;
    text-align: center;
    padding: 0 30px;
}

.slogan h2 {
    margin: 15px 0;
    font-size: 28px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.slogan h2:hover {
    transform: scale(1.05);
}

/* 右侧表单区域 */
.from-box { /* 保持与HTML中一致的类名from-box */
    width: 60%;
    height: 380px;
    background-color: aliceblue;
    box-shadow: rgba(0, 0, 0, 0.2) 0 5px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a2b68;
    margin-right: 30px;
    transition: all 0.3s ease;
}

.from-box:hover {
    box-shadow: rgba(0, 0, 0, 0.3) 0 8px 25px;
}

/* 表单内容区域 */
.main {
    width: 80%;
}

.main h2 {
    margin-bottom: 30px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #7b4397;
    position: relative;
}

.main h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: #dc2430;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

/* 表单列表样式 */
.main ul {
    list-style: none;
}

.main li {
    margin-bottom: 20px;
}

/* 标签样式 */
.main label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #5a2b68;
}

/* 输入框样式 */
.main input[type="text"],
.main input[type="password"] {
    width: 100%;
    outline: none;
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f9f9fb;
}

.main input[type="text"]:focus,
.main input[type="password"]:focus {
    border-color: #7b4397;
    box-shadow: 0 0 0 3px rgba(123, 67, 151, 0.1);
    background-color: white;
}

.main input::placeholder {
    color: #c0c0c5;
}

/* 提交按钮样式 */
.submit-btn {
    width: 100%;
    padding: 12px 0;
    background: linear-gradient(135deg, #7b4397 0%, #dc2430 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(123, 67, 151, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(123, 67, 151, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(123, 67, 151, 0.3);
}

/* 响应式设计 - 适配小屏幕 */
@media (max-width: 850px) {
    .bg {
        width: 90%;
        height: auto;
        flex-direction: column;
        padding: 30px 0;
        position: relative;
        margin: 30px auto;
    }

    .slogan, .from-box {
        width: 90%;
        margin: 0 auto 20px;
    }

    .slogan {
        padding: 20px 0;
    }

    .from-box {
        height: auto;
        padding: 30px 0;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .main {
        width: 90%;
    }

    .slogan h2 {
        font-size: 24px;
    }

    .main h2 {
        font-size: 22px;
    }
}

.bg.bottom-box{
    text-align: right;
    font-size: 12px;
    text-decoration: lightsalmon;
}

